<?php /* Smarty version 2.6.20, created on 2012-12-20 12:06:00
         compiled from admin_main.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin_main.htm', 41, false),array('modifier', 'number_format', 'admin_main.htm', 131, false),array('modifier', 'truncate', 'admin_main.htm', 198, false),array('function', 'math', 'admin_main.htm', 138, false),array('insert', 'getNotice', 'admin_main.htm', 164, false),)), $this); ?>

    <div class="block">
      <div class="block-left">
	  
	  
	  <div id="new-notice" class="new-notice">
      <div class="new-notiec-top">
        <div class="nn-tl"></div>
        <div class="nn-tr"></div>
        <div class="nn-tm"></div>
      </div>
		<div class="new-notice-content">
			<div class="new-notice-content-main">
				<p><span class="notice-title">尊敬的客户：</span></p>
				<p><span class="notice-content">
				   <?php echo $this->_tpl_vars['lang']['wlc_font']; ?>
<?php echo $_COOKIE['USER']; ?>
，
				   <?php if ($_SESSION['USER_TYPE'] == 1): ?>
				   		您现在是个人会员，请在此管理您的资料，处理在线贸易。
				   <?php else: ?>
				   		<?php echo $this->_tpl_vars['lang']['log']; ?>
 <?php echo $this->_tpl_vars['config']['company']; ?>
。请在此管理您的资料，处理在线贸易。
				   <?php endif; ?>
			   </p>
			</div>
		</div>
      <div class="new-notice-bottom">
        <div class="nn-bl"></div>
       	<div class="nn-br"></div>
        <div class="nn-bm"></div>
      </div>
	</div>
	  
	  
	  
        <div class="content-title">
          <span class="c-title">消息中心</span>
        </div>
        <div>
		  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C9E0FE">
			  <tr>
				<td width="13%" align="right" bgcolor="#F9FFE5">登录时间</td>
				<td width="37%" align="left" bgcolor="#FFFFFF"><?php echo ((is_array($_tmp=$this->_tpl_vars['cominfo']['lastLoginTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
</td>
			    <td width="15%" align="right" bgcolor="#F9FFE5">注册时间</td>
			    <td width="35%" bgcolor="#FFFFFF"><?php echo ((is_array($_tmp=$this->_tpl_vars['cominfo']['regtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
</td>
			  </tr>
			  <tr>
			    <td align="right" bgcolor="#F9FFE5">会员身份</td>
			    <td bgcolor="#FFFFFF">
				<?php echo $this->_tpl_vars['cominfo']['rank']; ?>
<?php echo $this->_tpl_vars['cominfo']['medal']; ?>

				<a href="main.php?menu=<?php echo $_GET['menu']; ?>
&action=admin_upgrade_group" style="text-decoration:underline;">
			    <?php echo $this->_tpl_vars['lang']['upvip']; ?>
</a>
				</td>
		        <td align="right" bgcolor="#F9FFE5"><?php echo $this->_tpl_vars['lang']['vtime']; ?>
</td>
		        <td bgcolor="#FFFFFF">
					<?php if ($this->_tpl_vars['cominfo']['stime'] != '' || $this->_tpl_vars['cominfo']['etime'] != ''): ?>
					   <?php echo ((is_array($_tmp=$this->_tpl_vars['cominfo']['stime'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
<?php echo $this->_tpl_vars['lang']['to']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['cominfo']['etime'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>

				   <?php endif; ?>
				</td>
		    </tr>
			  <tr>
			    <td align="right" bgcolor="#F9FFE5"><?php echo $this->_tpl_vars['lang']['you_url']; ?>
</td>
			    <td colspan="3" bgcolor="#FFFFFF">
						<?php if ($this->_tpl_vars['shopurl'] != ''): ?>
						  <a style=" text-decoration:none; color:#333333" href="http://<?php echo $this->_tpl_vars['shopurl']; ?>
" target="_blank">http://<?php echo $this->_tpl_vars['shopurl']; ?>
</a>
						<?php else: ?>
							<?php if ($this->_tpl_vars['config']['opensuburl'] == 1): ?>
									<a style=" text-decoration:none; color:#333333" href="http://<?php echo $_COOKIE['USER']; ?>
.<?php echo $this->_tpl_vars['config']['baseurl']; ?>
" target="_blank">http://<?php echo $_COOKIE['USER']; ?>
.<?php echo $this->_tpl_vars['config']['baseurl']; ?>
</a>
							<?php else: ?>
								   <a style=" text-decoration:none; color:#333333" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/shop.php?uid=<?php echo $this->_tpl_vars['buid']; ?>
" target="_blank"><?php echo $this->_tpl_vars['config']['weburl']; ?>
/shop.php?uid=<?php echo $this->_tpl_vars['buid']; ?>
</a>
							<?php endif; ?>
						<?php endif; ?>
				</td>
	        </tr>
			  <tr>
			    <td align="right" bgcolor="#F9FFE5"><?php echo $this->_tpl_vars['lang']['spurl']; ?>
</td>
			    <td colspan="3" bgcolor="#FFFFFF">
				<?php if ($this->_tpl_vars['config']['opensuburl'] == 1): ?>
   	   <a style=" text-decoration:none; color:#333333" target="_blank" href="http://<?php echo $_COOKIE['USER']; ?>
.<?php echo $this->_tpl_vars['config']['baseurl']; ?>
/?spread=<?php echo $this->_tpl_vars['buid']; ?>
">http://<?php echo $_COOKIE['USER']; ?>
.<?php echo $this->_tpl_vars['config']['baseurl']; ?>
/?spread=<?php echo $this->_tpl_vars['buid']; ?>
</a> <?php echo $this->_tpl_vars['lang']['spreadmsg']; ?>

   <?php else: ?>
       <a style=" text-decoration:none; color:#333333" target="_blank" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/shop.php?uid=<?php echo $this->_tpl_vars['buid']; ?>
&spread=<?php echo $this->_tpl_vars['buid']; ?>
"><?php echo $this->_tpl_vars['config']['weburl']; ?>
/shop.php?uid=<?php echo $this->_tpl_vars['buid']; ?>
&spread=<?php echo $this->_tpl_vars['buid']; ?>
</a> <?php echo $this->_tpl_vars['lang']['spreadmsg']; ?>

   <?php endif; ?></td>
	        </tr>
			</table>
        </div>
		
		
		
		
		 <?php if ($_SESSION['USER_TYPE'] == 2): ?>
		<div class="content-title" style="margin-top:10px;"><span class="c-title">快捷功能</span></div>
		<div class="admin_table1">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td align="center" valign="middle"><a href="main.php?menu=user&amp;action=admin_personal"><img src="image/default/user_admin/icon5.png" /><br />
		    完善资料</a></td>
			<td align="center" valign="middle"><a href="main.php?menu=user&amp;action=business_info"><img src="image/default/user_admin/icon2.png" /><br />
工商验证</a></td>
			<td align="center" valign="middle"><a href="main.php?action=m&amp;m=offer&amp;s=admin_offer&amp;menu=info"><img src="image/default/user_admin/icon1.png" /><br />
发布信息</a></td>
			<td align="center" valign="middle"><a href="main.php?menu=usershop&amp;action=template"><img src="image/default/user_admin/icon4.png" /><br />
模板风格</a></td>
			<td align="center" valign="middle"><a href="main.php?menu=inquire&amp;action=admin_mail_list&amp;type=inbox"><img src="image/default/user_admin/icon3.png" /><br />
站内信息</a></td>
		  </tr>
		  <tr>
			<td align="center" valign="middle"><a href="main.php?menu=trade&amp;action=admin_accounts_cashflow"><img src="image/default/user_admin/icon6.png" /><br />
资金记录</a></td>
			<td align="center" valign="middle"><a href="main.php?action=m&m=offer&s=admin_offer_list&menu=info"><img src="image/default/user_admin/icon7.png" /><br />
信息管理</a></td>
			<td align="center" valign="middle"><a href="main.php?menu=inquire&amp;action=admin_subscribe"><img src="image/default/user_admin/icon8.png" /><br />
贸易提醒</a></td>
			<td align="center" valign="middle"><a href="main.php?action=m&amp;m=friend&amp;s=admin_friends_list"><img src="image/default/user_admin/icon9.png" /><br />
我的商友</a></td>
			<td align="center" valign="middle"><a href="main.php?menu=inquire&amp;action=myfavorite"><img src="image/default/user_admin/icon10.png" /><br />
商机收藏</a></td>
		  </tr>
		</table>

		</div>
		<?php endif; ?>
		
		
		
		<div class="content-title" style="margin-top:10px;"><span class="c-title">我的商务</span></div>
        <div class="admin_table1">
		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C9E0FE">
		  <tr>
			<td width="14%" align="right" bgcolor="#F9FFE5">
			<strong><img src="image/default/user_admin/bs3.png" /> <?php echo $this->_tpl_vars['lang']['you_point']; ?>
</strong>
			</td>
			<td width="86%" bgcolor="#FFFFFF">
				<?php echo ((is_array($_tmp=$this->_tpl_vars['point']['point'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
<?php echo $this->_tpl_vars['lang']['points']; ?>
<?php echo $this->_tpl_vars['point']['rank']; ?>
<?php echo $this->_tpl_vars['lang']['prank']; ?>

				<a href="main.php?menu=<?php echo $_GET['menu']; ?>
&action=admin_buy_point"><?php echo $this->_tpl_vars['lang']['buypoint']; ?>
</a>
			</td>
		  </tr>
		  <tr>
			<td align="right" bgcolor="#F9FFE5"><strong><img src="image/default/user_admin/bs1.png" /> <?php echo $this->_tpl_vars['lang']['yoursmail']; ?>
</strong></td>
			<td bgcolor="#FFFFFF">
			<a href="main.php?menu=<?php echo $_GET['menu']; ?>
&action=admin_mail_list"><?php echo $this->_tpl_vars['mailNum']['new']; ?>
/<?php echo smarty_function_math(array('equation' => "x + y",'x' => $this->_tpl_vars['mailNum']['new'],'y' => $this->_tpl_vars['mailNum']['read']), $this);?>
</a><?php echo $this->_tpl_vars['lang']['yoursmail']; ?>
，
						<a href="main.php?menu=inquire&amp;action=admin_mail_list&amp;type=inbox">收件箱</a>|<a href="main.php?menu=inquire&amp;action=admin_mail_list&amp;type=outbox">发件箱</a>|<a href="main.php?menu=inquire&amp;action=admin_mail_list&amp;type=delbox">垃圾箱</a> </td>
		  </tr>
		  <tr>
			<td align="right" bgcolor="#F9FFE5"><strong><img src="image/default/user_admin/bs2.png" /> 资金</strong></td>
			<td bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['cominfo']['cash']; ?>
， <a href="main.php?menu=trade&amp;action=admin_accounts_cashflow">资金流水</a>|<a href="main.php?action=admin_accounts_bind&amp;active=1&amp;menu=trade">提现</a>|<a href="main.php?menu=trade&amp;action=admin_accounts_pay">充值</a></td>
		  </tr>
		  <tr>
			<td align="right" bgcolor="#F9FFE5"><strong><img src="image/default/user_admin/bs4.png" /> <?php echo $this->_tpl_vars['lang']['urew']; ?>
</strong></td>
			<td bgcolor="#FFFFFF">
			 <?php echo $this->_tpl_vars['cominfo']['comments']*1; ?>
<?php echo $this->_tpl_vars['lang']['reviews']; ?>

			  <?php echo $this->_tpl_vars['lang']['readtimes']; ?>
<?php echo $this->_tpl_vars['cominfo']['view_times']*1; ?>
<?php echo $this->_tpl_vars['lang']['tims']; ?>
|<a target="_blank" href="shop.php?uid=<?php echo $this->_tpl_vars['buid']; ?>
&action=comments&m=company"><?php echo $this->_tpl_vars['lang']['readre']; ?>
</a>
			</td>
		  </tr>
		</table>
        </div>
	</div>

      <div class="block-right">
      	<div class="tm-title">
          <div class="c-left"></div>
          <div class="c-middle"><span style="float: left;color:#1C4E86" class="c-title">网站公告</span></div>
          <div class="c-right"></div>
        </div>
        <div class="tm-detail">
          <ul class="tm-list">
            <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'getNotice', 'limit' => 5)), $this); ?>

		  </ul>
		  <script src='<?php echo $this->_tpl_vars['config']['weburl']; ?>
/api/ad.php?id=44&catid=<?php echo $_GET['id']; ?>
&sname=<?php echo $this->_tpl_vars['sname']; ?>
'></script>
	  </div>

		<!--
		<div class="tm-title">
          <div class="c-left"></div>
          <div class="c-middle"><span class="c-title" style="color:#1C4E86">记事本</span></div>
          <div class="c-right"></div>
        </div>
        <div class="tm-detail">
         <table width="100%" border="0" cellspacing="5" cellpadding="0">
		  <tr><td><textarea style="width:100%; height:200px;" name="" cols="" rows="">aaaa</textarea><br />
		  		 <input value="保存" name="" type="button" />
		  </td></tr>
		</table>
	  	</div>
		-->
		<div class="tm-title">
          <div class="c-left"></div>
          <div class="c-middle"><span class="c-title" style="color:#1C4E86">最近访客</span></div>
          <div class="c-right"></div>
        </div>
        <div class="tm-detail">
         <table width="100%" border="0" cellspacing="5" cellpadding="0">
		  <tr>
		  <?php $_from = $this->_tpl_vars['uvlist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['nums'] => $this->_tpl_vars['list']):
?>
			<td align="left">
			<?php if ($this->_tpl_vars['list']['logo'] != '' && $this->_tpl_vars['list']['logo'] != '0'): ?>
				<img height="50" src="<?php echo $this->_tpl_vars['list']['logo']; ?>
" />
			<?php else: ?>
				<img height="50" src="image/default/nopic.gif" />
			<?php endif; ?>
			<br /><a target="_blank" href="shop.php?uid=<?php echo $this->_tpl_vars['list']['userid']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['user'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10) : smarty_modifier_truncate($_tmp, 10)); ?>
</a>
			</td>
			<?php if (( $this->_tpl_vars['nums']+1 ) % 3 == 0): ?></tr><tr><?php endif; ?>
			<?php endforeach; else: ?>
			<td>暂无访客</td>
		  <?php endif; unset($_from); ?>
		  </tr>
		</table>
	  	</div>
      </div>
    </div>